		<link rel="stylesheet" href="/jwGalleryPlugin/css/basic.css" type="text/css" />
		<link rel="stylesheet" href="/jwGalleryPlugin/css/galleriffic-2.css" type="text/css" />
		
		<!--<link rel="stylesheet" href="css/white.css" type="text/css" /> -->
		<!-- <link rel="stylesheet" href="/jwGalleryPlugin/css/black.css" type="text/css" /> -->

		<script type="text/javascript" src="/jwGalleryPlugin/js/jquery-1.3.2.js"></script>		
		<script type="text/javascript" src="/jwGalleryPlugin/js/jquery.history.js"></script>
		<script type="text/javascript" src="/jwGalleryPlugin/js/jquery.galleriffic.js"></script>
		<script type="text/javascript" src="/jwGalleryPlugin/js/jquery.opacityrollover.js"></script>

            <div id="page">
			<div id="container">
				<!-- Start Advanced Gallery Html Containers -->				
				<div class="navigation-container">
					<div id="thumbs" class="navigation">
						<a class="pageLink prev" style="visibility: hidden;" href="#" title="Previous Page"></a>
					
						<ul class="thumbs noscript">
                            <?php foreach( $pictures as $picture ): ?>
                                <li>
									<span style="display:inline-block; vertical-align:center">
										<a class="thumb" name="" href='<?php echo url_for( "jwGallery/getImage?id=".$picture->getId() ) ?>' title="">
											<img src="<?php echo url_for( "jwGallery/getImage?id=".$picture->getId()."&thumb=100" ) ?>" alt="Title #0" />
										</a>
									</span>
                                    <div class="caption">
                                        <div class="image-title">Title #0</div>
                                        <div class="image-desc">Description</div>
                                    </div>
                                </li>                            
                            <?php endforeach ?>							
						</ul>
						<a class="pageLink next" style="visibility: hidden;" href="#" title="Next Page"></a>
					</div>
				</div>
				<div class="content">
					<div class="slideshow-container">
						<div id="controls" class="controls"></div>
						<div id="loading" class="loader"></div>
						<div id="slideshow" class="slideshow"></div>
					</div>
				</div>
				<!-- End Gallery Html Containers -->
				<div style="clear: both;"></div>
			</div>
		</div>
		<script type="text/javascript">
			jQuery(document).ready(function($) {
				// We only want these styles applied when javascript is enabled
				$('div.navigation').css({'width' : '260px', 'float' : 'left'});
				$('div.content').css('display', 'block');

				// Initially set opacity on thumbs and add
				// additional styling for hover effect on thumbs
				var onMouseOutOpacity = 0.67;
				$('#thumbs ul.thumbs li').opacityrollover({
					mouseOutOpacity:   onMouseOutOpacity,
					mouseOverOpacity:  1.0,
					fadeSpeed:         'fast',
					exemptionSelector: '.selected'
				});
				
				// Initialize Advanced Galleriffic Gallery
				var gallery = $('#thumbs').galleriffic({
					delay:                     5000,
					numThumbs:                 8,
					preloadAhead:              2,
					enableTopPager:            true,
					enableBottomPager:         true,
					maxPagesToShow:            7,
					imageContainerSel:         '#slideshow',
					controlsContainerSel:      '#controls',
					captionContainerSel:       null,
					loadingContainerSel:       '#loading',
					renderSSControls:          true,
					renderNavControls:         true,
					playLinkText:              'Play Slideshow',
					pauseLinkText:             'Pause Slideshow',
					prevLinkText:              '&lsaquo; Previous Photo',
					nextLinkText:              'Next Photo &rsaquo;',
					nextPageLinkText:          'Next &rsaquo;',
					prevPageLinkText:          '&lsaquo; Prev',
					enableHistory:             false,
					autoStart:                 false,
					syncTransitions:           true,
					defaultTransitionDuration: 1500,
					onSlideChange:             function(prevIndex, nextIndex) {
						// 'this' refers to the gallery, which is an extension of $('#thumbs')
						this.find('ul.thumbs').children()
							.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
							.eq(nextIndex).fadeTo('fast', 1.0);
					},
					onPageTransitionOut:       function(callback) {
						this.fadeTo('fast', 0.0, callback);
					},
					onPageTransitionIn:        function() {
						this.fadeTo('fast', 1.0);
					}
				});
			});		
			
		</script>
	</body>